/**
 * Copyright (c) 2013-Now http://jeesite.com All rights reserved.
 */
package com.jeesite.modules.zx.points.rule.service;

import java.util.List;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.jeesite.common.entity.Page;
import com.jeesite.common.service.CrudService;
import com.jeesite.modules.zx.points.rule.entity.TpointsRule;
import com.jeesite.modules.zx.points.rule.dao.TpointsRuleDao;

/**
 * 积分规则表Service
 * @author zpp
 * @version 2020-02-13
 */
@Service
@Transactional(readOnly=true)
public class TpointsRuleService extends CrudService<TpointsRuleDao, TpointsRule> {
	
	/**
	 * 获取单条数据
	 * @param tpointsRule
	 * @return
	 */
	@Override
	public TpointsRule get(TpointsRule tpointsRule) {
		return super.get(tpointsRule);
	}
	
	/**
	 * 查询分页数据
	 * @param tpointsRule 查询条件
	 * @param tpointsRule.page 分页对象
	 * @return
	 */
	@Override
	public Page<TpointsRule> findPage(TpointsRule tpointsRule) {
		return super.findPage(tpointsRule);
	}
	
	/**
	 * 保存数据（插入或更新）
	 * @param tpointsRule
	 */
	@Override
	@Transactional(readOnly=false)
	public void save(TpointsRule tpointsRule) {
		super.save(tpointsRule);
	}
	
	/**
	 * 更新状态
	 * @param tpointsRule
	 */
	@Override
	@Transactional(readOnly=false)
	public void updateStatus(TpointsRule tpointsRule) {
		super.updateStatus(tpointsRule);
	}
	
	/**
	 * 删除数据
	 * @param tpointsRule
	 */
	@Override
	@Transactional(readOnly=false)
	public void delete(TpointsRule tpointsRule) {
		super.delete(tpointsRule);
	}
	
}